package com.woniuxy.third.service.impl;

import com.woniuxy.third.entity.Order;
import com.woniuxy.third.mapper.OrderMapper;
import com.woniuxy.third.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: yangtao
 * @date 2021/7/20 18:30
 * @Version 1.0
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Resource
    private OrderMapper orderMapper;
    @Override
    public List<Order> findAll() {
        return orderMapper.findAll();
    }
    @Override
    public List<Order> findAllByid(int uid) {
        return orderMapper.findAllByid(uid);
    }

    @Override
    public int addOrder(Order order) {
        return orderMapper.addOrder(order);
    }

    @Override
    public int orderstatus(int id,int status) {
        int i=orderMapper.orderstatus(id,status);
        return i;
    }

    @Override
    public Order findByoid(int uid) {
        return orderMapper.findByoid(uid);
    }
}
